package com.itbaizhan.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.concurrent.TimeUnit;

/**
 * @author spf
 * @date 2024/3/10
 * @time 11:20
 */
@RestController
public class IndexController {

    @GetMapping("/index")
    public String index(){
        try {
            TimeUnit.SECONDS.sleep(5000);
            return "index";
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }

    }
}
